<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ include file="/include/taglib.jsp"%>
<html>
<head>
<meta charset="UTF-8">
<title>我的账户-注册</title>
<jsp:include page="/include/wchat/head.jsp"></jsp:include>

<script src="/v2/wchat/resrc/js/rsa/RSA.min.js" type="text/javascript"></script>
<script src="/v2/wchat/resrc/js/rsa/BigInt.min.js" type="text/javascript"></script>
<script src="/v2/wchat/resrc/js/rsa/Barrett.min.js" type="text/javascript"></script>
<script type="text/javascript">
function encodeData(e, m, r, v){setMaxDigits(130);var key = new RSAKeyPair(e,"",m);return encryptedString(key, r+v);}
</script>

<link type="text/css" rel="stylesheet" href="/v2/wchat/resrc/css/account.css">
</head>
<body>
<div id="header"> 
	<a href="/wchatIndex.do" class="backto">返回</a>
	<div class="reg-log"> <a href="/wchatRegisterInit.do" class="current">注册</a><a href="/wchatLoginInit.do" >登录</a> </div>
</div>
<div id="wrap">
	<div class="regist">
		<div class="itip regist-itip"><b class="novice-50"></b></div>
		<p style="padding:0 15px 15px; color:#9FABB2; text-align:center">注册即送 ￥2888！</p>
		<div class="link-touch">
			<ul class="items">
				<li>
					<label class="txt">账号</label>
					<input type="text" id="account" class="input" placeholder="请输入用户名" maxlength="32" onblur="chekUsNamefor()">
				</li>
			</ul>
		</div>
		<div class="link-touch">
			<ul class="items">
				<li>
					<label class="txt">密码</label>
					<input type="password" id="password" class="input" placeholder="请输入密码" maxlength="16" onblur="chekPwdfor()">
				</li>
				<li>
					<label class="txt">确认</label>
					<input type="password" id="rePassword" class="input" placeholder="请确认密码" maxlength="16" onblur="checkPWDui()">
				</li>
				<c:choose> 
					<c:when test="${empty param.param && empty session.reffereeParam}">
						<li>
							<label class="txt">经纪人</label>
							<input type="text" id="refferee" class="input" placeholder="经纪人（选填）" onblur="checkRefferee();">
						</li>
					</c:when>
					<c:when test="${empty session.reffereeParam && not empty param.param}">
						<input type="hidden" id="refferee" class="input" onblur="checkRefferee();" value="${paramMap.refferee}">
					</c:when>
					<c:when test="${not empty session.reffereeParam}">
						<input type="hidden" id="refferee" class="input" onblur="checkRefferee();" value="${session.reffereeParam}">
					</c:when>
				</c:choose>
			</ul>
			<div class="vtip">密码需 6-16 位，建议使用字母加数字或符号的组合</div>
		</div>
		<div class="link-touch verify-num"> 
			<span class="verify-code">
				<input type="text" id="captcha" class="input" placeholder="请输入验证码" maxlength="4" onblur="chekVerifyCode()" >
			</span> 
			<img id="imgCaptcha" src="I4008lOve893gOfUll983/imageCode.do?pageId=wchatRegister" onclick="return refresh('wchatRegister');" />
		</div>
		<div class="link-touch acc-agree">
    		<input type="checkbox" checked="checked" class="ipt-agree" id="agreement">
			我同意《<a href="/regAgreement.do">注册协议</a>》及《<a href="/getMessageBytypeId.do?typeId=22">投资咨询与管理服务协议</a>》
			<div id="errorMsg" class="vtip errs none">请重新输入账号</div>
		</div>
		<div class="operate-button operate-acc"> <a href="javascript:;" class="btn" onclick="return register();">下一步</a> 
			<a href="/wchatLoginInit.do" class="btn-server">已有帐号，直接登录</a>
		</div>
	</div>
</div>



<jsp:include page="/include/wchat/footer.jsp"></jsp:include>

<script src="/v2/wchat/resrc/js/common/registerVerify.js" type="text/javascript"></script>



</body>
</html>